/**
 *
 */
package com.zhuoyue.elmt.entity;

import org.hibernate.validator.constraints.Length;

import com.eit.eitsite.common.persistence.DataEntity;

/**
 * 维保合同备案设备信息Entity
 * @author chenhao
 * @version 2016-09-11
 */
public class MaintenanceContractDevice extends DataEntity<MaintenanceContractDevice> {
	
	private static final long serialVersionUID = 1L;
	private String contractNo;		// 合同编号
	private String deviceCode;		// 设备代码
	private String remark;		// 备注
	
	public MaintenanceContractDevice() {
		super();
	}

	public MaintenanceContractDevice(String id){
		super(id);
	}

	@Length(min=0, max=50, message="合同编号长度必须介于 0 和 50 之间")
	public String getContractNo() {
		return contractNo;
	}

	public void setContractNo(String contractNo) {
		this.contractNo = contractNo;
	}
	
	@Length(min=0, max=21, message="设备代码长度必须介于 0 和 21 之间")
	public String getDeviceCode() {
		return deviceCode;
	}

	public void setDeviceCode(String deviceCode) {
		this.deviceCode = deviceCode;
	}
	
	@Length(min=0, max=254, message="备注长度必须介于 0 和 254 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}